package com.codingfuture.erp_system.service;

import com.codingfuture.erp_system.dto.GoodsDto;
import com.codingfuture.erp_system.entity.Goods;
import com.codingfuture.erp_system.entity.GoodsType;

import java.util.List;

public interface GoodsService {

    Goods findById(Integer id);

    boolean insert(Goods goods);

    List<GoodsType> findAll();

    boolean update(Goods goods);

    boolean delete(Integer id);

    List<Goods> findByAll(GoodsDto goodsDto);

    Goods findByName(String name);
}
